package com.zzh.hapiclientsdk;

import com.zzh.hapiclientsdk.client.HApiClient;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * HApi 客户端配置
 *
 */
@Configuration
@ConfigurationProperties("hapi.client")
@Data
@ComponentScan
public class HApiClientConfig {

    private String accessKey;

    private String secretKey;

    @Bean
    public HApiClient HApiClient() {
        return new HApiClient(accessKey, secretKey);
    }

}
